﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using ICDA.DataModel.Entities;

namespace ICDA.DataModel.Abstract
{
    public interface IRepository
    {
        IQueryable<UserTables> users { get; }
        IQueryable<ActivityTables> activity { get; }
        IQueryable<LeaveTables> leave { get; }
        IQueryable<TeamTables> team { get; }
        bool AddUser(UserTables usr);
        bool AddTask(ActivityTables actTable);
        bool DeleteTask(ActivityTables actTable);
        bool UpdateUser(UserTables user);
        bool DeleteUser(UserTables user);
        bool ChangePassword(UserTables user);
        bool AddLeave(LeaveTables leaveT);
        bool DeleteLeave(LeaveTables leaveT);
        bool AddTeam(TeamTables teams);
        bool UpdateTeam(TeamTables teams);
        bool DeleteTeam(TeamTables teams);
        bool SaveChanges();
    }
}
